package com.jsmtr.rms.entity;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Date;

@Entity
@Table(name = "PaperManage")
public class PaperManage {
    /**
     * 试卷ID
     */
    @Id
    @Column(nullable = false, length = 50)
    private String id;

    /**
     * 试卷名称
     */
    @Column(nullable = false, length = 200, unique = true)
    private String name;

    /**
     * 试卷用途 ：
     * 考试用卷、练习用卷
     */
    @Column(nullable = false, length = 10)
    private String purpose;

    /**
     * 试卷类型  ：
     * 固定试卷、随机试卷
     */
    @Column(nullable = false, length = 10)
    private String type;

    /**
     * 所属岗位
     */
    @Column(nullable = false, length = 50)
    private String position;

    /**
     * 总分
     */
    @Column(nullable = true)
    private Integer totalScore;

    /**
     * 创建人
     */
    @Column(nullable = true, length = 20)
    private String addName;

    /**
     * 创建时间
     */
    @Column(nullable = true)
    private Date addTime;

    /**
     * 试卷状态  ：
     * 启用、停用
     */
    @Column(nullable = true, length = 10)
    private String state;

    /**
     * 试卷说明
     */
    @Column(nullable = false, length = 500)
    private String explain;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPurpose() {
        return purpose;
    }

    public void setPurpose(String purpose) {
        this.purpose = purpose;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public Integer getTotalScore() {
        return totalScore;
    }

    public void setTotalScore(Integer totalScore) {
        this.totalScore = totalScore;
    }

    public String getAddName() {
        return addName;
    }

    public void setAddName(String addName) {
        this.addName = addName;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getExplain() {
        return explain;
    }

    public void setExplain(String explain) {
        this.explain = explain;
    }

}
